package com.cloud.workTest;

/**
 * 测试StringArray
 * */
public class StringArrayTest {
    public static void main(String[] args) {
        String text = "66hjhdksjhfkjdhkj 下载地址：https://minio.jztdata.com:9000/cryptower/package/install/cryptower-package-install_supervise-node-test1-x86_64.tar.gz";
        System.out.println(text.indexOf("下载地址："));
        System.out.println(text.substring(23));
        String whitePayType = "accoutPay:quYuCard-card";
        if (whitePayType.indexOf("accoutPay") >= 0) {
            String[] accountPayTypes = whitePayType.split(":")[1].split("-");
            for (String accountPayType : accountPayTypes) {
                System.out.println(accountPayType);
            }
            System.out.println(accountPayTypes.length);
        }

    }
}
